package com.imooc.mapping.course2;

import com.imooc.module.collect.enums.DataTypeEnum;
import com.imooc.module.collect.enums.SourceTypeEnum;

import java.time.LocalDateTime;

/**
 * @Author Tim
 * @Description:
 * @Version 1.0
 */
public class MainTest {

    public static void main(String[] args) {
        TDataCenterMetadata metadata = new TDataCenterMetadata();
        metadata.setDataSecurity(1);
        metadata.setEnName("enName"); //
        metadata.setCnName("cnName");
        metadata.setDescription("description");
        metadata.setDimension(Boolean.TRUE);
        metadata.setDefaultShow(Boolean.FALSE);
        metadata.setSourceType(SourceTypeEnum.CALCULATE.getSourceValue());
        metadata.setDataType(DataTypeEnum.FLOAT.getJavaStrType()); //
        metadata.setBaseValue(100);

        User user = new User();
        user.setSex(1);
        user.setUsername("tim");
        user.setId(1);
        user.setEnName("enName2");
        metadata.setUser(user);


//        Metadata mdmodel = MetadataCopier.INSTANCE.metadataCopier(metadata);
//        System.out.println(mdmodel);


    }
}
